﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using XCT.Forms;
using System.Diagnostics;

namespace XCT
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Process[] processes = Process.GetProcessesByName("XCT");
            if (processes.Length > 1) //if there's more than one instance
            {
                MessageBox.Show("Chương trình đang chạy...", "Thông báo:");
                return;
            }
            //Application.Run(new FormMain());
            Application.Run(new FormMain());
        }
    }
}